<?php /* Smarty version 2.6.26, created on 2015-06-08 13:19:46
         compiled from D:/wamp/www/homework/0607/4.wenda/Admin/View/Index/category.html */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title></title>
	<link rel="stylesheet" href="<?php echo @__PUBLIC__; ?>
/Css/public.css" />
	<script type="text/javascript" src="<?php echo @__PUBLIC__; ?>
/Js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="<?php echo @__PUBLIC__; ?>
/Js/public.js"></script>
</head>

<body>
	<table class="table">
		<tr>
			<td class="th" colspan="20">分类列表</td>
		</tr>
		<tr class="tableTop">
			<td class="tdLittle0 center">展开</td>
			<td class="tdLittle1">ID</td>
			<td>分类名称</td>
			<td class="tdLtitle7">操作</td>
		</tr>
		<?php unset($this->_sections['son']);
$this->_sections['son']['loop'] = is_array($_loop=$this->_tpl_vars['cate']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['son']['name'] = 'son';
$this->_sections['son']['show'] = true;
$this->_sections['son']['max'] = $this->_sections['son']['loop'];
$this->_sections['son']['step'] = 1;
$this->_sections['son']['start'] = $this->_sections['son']['step'] > 0 ? 0 : $this->_sections['son']['loop']-1;
if ($this->_sections['son']['show']) {
    $this->_sections['son']['total'] = $this->_sections['son']['loop'];
    if ($this->_sections['son']['total'] == 0)
        $this->_sections['son']['show'] = false;
} else
    $this->_sections['son']['total'] = 0;
if ($this->_sections['son']['show']):

            for ($this->_sections['son']['index'] = $this->_sections['son']['start'], $this->_sections['son']['iteration'] = 1;
                 $this->_sections['son']['iteration'] <= $this->_sections['son']['total'];
                 $this->_sections['son']['index'] += $this->_sections['son']['step'], $this->_sections['son']['iteration']++):
$this->_sections['son']['rownum'] = $this->_sections['son']['iteration'];
$this->_sections['son']['index_prev'] = $this->_sections['son']['index'] - $this->_sections['son']['step'];
$this->_sections['son']['index_next'] = $this->_sections['son']['index'] + $this->_sections['son']['step'];
$this->_sections['son']['first']      = ($this->_sections['son']['iteration'] == 1);
$this->_sections['son']['last']       = ($this->_sections['son']['iteration'] == $this->_sections['son']['total']);
?>
		<tr>
			<td><a href="javascript:void(0)" class="showPlus"></a></td>
			<td><?php echo $this->_tpl_vars['cate'][$this->_sections['son']['index']]['cid']; ?>
</td>
			<td><?php echo $this->_tpl_vars['cate'][$this->_sections['son']['index']]['title']; ?>
</td>
			
			<td>
				[<a href="<?php echo @__APP__; ?>
?a=cate_add&cid=<?php echo $this->_tpl_vars['cate'][$this->_sections['son']['index']]['cid']; ?>
">添加子分类</a>][
				<a href="<?php echo @__APP__; ?>
?a=cate_edit&cid=<?php echo $this->_tpl_vars['cate'][$this->_sections['son']['index']]['cid']; ?>
">修改</a>][
				<a href="<?php echo @__APP__; ?>
?a=cate_del&cid=<?php echo $this->_tpl_vars['cate'][$this->_sections['son']['index']]['cid']; ?>
" class="del">删除</a>]
			</td>
		</tr>
		<?php endfor; endif; ?>
		
	</table>

</body>
</html>